//
//  OWWVCPopAnimation.m
//  Ohwawa
//
//  Created by jing ling on 2017/12/17.
//  Copyright © 2017年 changyi. All rights reserved.
//

#import "OWWVCPopAnimation.h"

@implementation OWWVCPopAnimation
- (void)animateTransitionEvent {
    [self.containerView addSubview:self.toVC.view];
    [self.containerView addSubview:self.fromVC.view];
    [UIView animateWithDuration:self.transitionDuration animations:^{
        self.fromVC.view.frame = CGRectMake(-kScreenWidth, 0, kScreenWidth, kScreenHeight);
    } completion:^(BOOL finished) {
        [self completeTransition];
    }];
}
@end
